Optimal. Leaf size=99 \[ \frac {1}{4} a^4 c^2 x^4 \tan ^{-1}(a x)-\frac {1}{12} a^3 c^2 x^3+a^2 c^2 x^2 \tan ^{-1}(a x)+\frac {1}{2} i c^2 \text {Li}_2(-i a x)-\frac {1}{2} i c^2 \text {Li}_2(i a x)-\frac {3}{4} a c^2 x+\frac {3}{4} c^2 \tan ^{-1}(a x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 99, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 7, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.350, Rules used = {4948, 4848, 2391, 4852, 321, 203, 302} \[ \frac {1}{2} i c^2 \text {PolyLog}(2,-i a x)-\frac {1}{2} i c^2 \text {PolyLog}(2,i a x)-\frac {1}{12} a^3 c^2 x^3+\frac {1}{4} a^4 c^2 x^4 \tan ^{-1}(a x)+a^2 c^2 x^2 \tan ^{-1}(a x)-\frac {3}{4} a c^2 x+\frac {3}{4} c^2 \tan ^{-1}(a x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 302
Rule 321
Rule 2391
Rule 4848
Rule 4852
Rule 4948
Rubi steps
\begin {align*} \int \frac {\left (c+a^2 c x^2\right )^2 \tan ^{-1}(a x)}{x} \, dx &=\int \left (\frac {c^2 \tan ^{-1}(a x)}{x}+2 a^2 c^2 x \tan ^{-1}(a x)+a^4 c^2 x^3 \tan ^{-1}(a x)\right ) \, dx\\ &=c^2 \int \frac {\tan ^{-1}(a x)}{x} \, dx+\left (2 a^2 c^2\right ) \int x \tan ^{-1}(a x) \, dx+\left (a^4 c^2\right ) \int x^3 \tan ^{-1}(a x) \, dx\\ &=a^2 c^2 x^2 \tan ^{-1}(a x)+\frac {1}{4} a^4 c^2 x^4 \tan ^{-1}(a x)+\frac {1}{2} \left (i c^2\right ) \int \frac {\log (1-i a x)}{x} \, dx-\frac {1}{2} \left (i c^2\right ) \int \frac {\log (1+i a x)}{x} \, dx-\left (a^3 c^2\right ) \int \frac {x^2}{1+a^2 x^2} \, dx-\frac {1}{4} \left (a^5 c^2\right ) \int \frac {x^4}{1+a^2 x^2} \, dx\\ &=-a c^2 x+a^2 c^2 x^2 \tan ^{-1}(a x)+\frac {1}{4} a^4 c^2 x^4 \tan ^{-1}(a x)+\frac {1}{2} i c^2 \text {Li}_2(-i a x)-\frac {1}{2} i c^2 \text {Li}_2(i a x)+\left (a c^2\right ) \int \frac {1}{1+a^2 x^2} \, dx-\frac {1}{4} \left (a^5 c^2\right ) \int \left (-\frac {1}{a^4}+\frac {x^2}{a^2}+\frac {1}{a^4 \left (1+a^2 x^2\right )}\right ) \, dx\\ &=-\frac {3}{4} a c^2 x-\frac {1}{12} a^3 c^2 x^3+c^2 \tan ^{-1}(a x)+a^2 c^2 x^2 \tan ^{-1}(a x)+\frac {1}{4} a^4 c^2 x^4 \tan ^{-1}(a x)+\frac {1}{2} i c^2 \text {Li}_2(-i a x)-\frac {1}{2} i c^2 \text {Li}_2(i a x)-\frac {1}{4} \left (a c^2\right ) \int \frac {1}{1+a^2 x^2} \, dx\\ &=-\frac {3}{4} a c^2 x-\frac {1}{12} a^3 c^2 x^3+\frac {3}{4} c^2 \tan ^{-1}(a x)+a^2 c^2 x^2 \tan ^{-1}(a x)+\frac {1}{4} a^4 c^2 x^4 \tan ^{-1}(a x)+\frac {1}{2} i c^2 \text {Li}_2(-i a x)-\frac {1}{2} i c^2 \text {Li}_2(i a x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 99, normalized size = 1.00 \[ \frac {1}{4} a^4 c^2 x^4 \tan ^{-1}(a x)-\frac {1}{12} a^3 c^2 x^3+a^2 c^2 x^2 \tan ^{-1}(a x)+\frac {1}{2} i c^2 \text {Li}_2(-i a x)-\frac {1}{2} i c^2 \text {Li}_2(i a x)-\frac {3}{4} a c^2 x+\frac {3}{4} c^2 \tan ^{-1}(a x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.44, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (a^{4} c^{2} x^{4} + 2 \, a^{2} c^{2} x^{2} + c^{2}\right )} \arctan \left (a x\right )}{x}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {sage}_{0} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 134, normalized size = 1.35 \[ \frac {a^{4} c^{2} x^{4} \arctan \left (a x \right )}{4}+a^{2} c^{2} x^{2} \arctan \left (a x \right )+c^{2} \arctan \left (a x \right ) \ln \left (a x \right )-\frac {a^{3} c^{2} x^{3}}{12}-\frac {3 a \,c^{2} x}{4}+\frac {3 c^{2} \arctan \left (a x \right )}{4}+\frac {i c^{2} \ln \left (a x \right ) \ln \left (i a x +1\right )}{2}-\frac {i c^{2} \ln \left (a x \right ) \ln \left (-i a x +1\right )}{2}+\frac {i c^{2} \dilog \left (i a x +1\right )}{2}-\frac {i c^{2} \dilog \left (-i a x +1\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.51, size = 104, normalized size = 1.05 \[ -\frac {1}{12} \, a^{3} c^{2} x^{3} - \frac {3}{4} \, a c^{2} x - \frac {1}{4} \, \pi c^{2} \log \left (a^{2} x^{2} + 1\right ) + c^{2} \arctan \left (a x\right ) \log \left (a x\right ) - \frac {1}{2} i \, c^{2} {\rm Li}_2\left (i \, a x + 1\right ) + \frac {1}{2} i \, c^{2} {\rm Li}_2\left (-i \, a x + 1\right ) + \frac {1}{4} \, {\left (a^{4} c^{2} x^{4} + 4 \, a^{2} c^{2} x^{2} + 3 \, c^{2}\right )} \arctan \left (a x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.61, size = 105, normalized size = 1.06 \[ \left \{\begin {array}{cl} 0 & \text {\ if\ \ }a=0\\ 2\,a^2\,c^2\,\mathrm {atan}\left (a\,x\right )\,\left (\frac {1}{2\,a^2}+\frac {x^2}{2}\right )-a\,c^2\,x-\frac {c^2\,\left (3\,\mathrm {atan}\left (a\,x\right )-3\,a\,x+a^3\,x^3\right )}{12}+\frac {a^4\,c^2\,x^4\,\mathrm {atan}\left (a\,x\right )}{4}-\frac {c^2\,{\mathrm {Li}}_{\mathrm {2}}\left (1-a\,x\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{2}+\frac {c^2\,{\mathrm {Li}}_{\mathrm {2}}\left (1+a\,x\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{2} & \text {\ if\ \ }a\neq 0 \end {array}\right . \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ c^{2} \left (\int \frac {\operatorname {atan}{\left (a x \right )}}{x}\, dx + \int 2 a^{2} x \operatorname {atan}{\left (a x \right )}\, dx + \int a^{4} x^{3} \operatorname {atan}{\left (a x \right )}\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________